home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / dev / c / GAPLib.lha / GAPLib / Makefile < prev    next >
Encoding:
Makefile  |  1999-05-29  |  2.5 KB  |  105 lines

  1.  
  2. .PHONY:
  3.     @echo
  4.  
  5. default: .PHONY
  6.     @echo " "
  7.     @echo "GAP-Lib (C)1998-1999 Peter Bengtsson"
  8.     @echo " "
  9.     @echo "Target must be one of:"
  10.     @echo "  generic    - Generic version (gcc/egcs)."
  11.     @echo "  unixcc     - Generic version (cc)."
  12.     @echo "  vbcc       - Generic version (vbcc). (Not Amiga.)"
  13.     @echo "  amiga      - Amiga SAS/C version."
  14.     @echo "  m68k       - Motorola m68k gcc/egcs version."
  15.     @echo "  sparc      - Sun Sparc gcc/egcs version."
  16.     @echo "  x86        - Intel x86 gcc/egcs version."
  17.     @echo " "
  18.     @echo "  tests      - Diagnostics for GAPLib (gcc/egcs)."
  19.     @echo " "
  20.     @echo "  examples   - Compile examples (gcc/egcs)."
  21.     @echo "  amigaex    - Compile examples with Amiga SAS/C."
  22.     @echo " "
  23.     @echo "  wizards    - Source wizards (gcc/egcs)."
  24.     @echo "  amigawiz   - Source wizards with Amiga SAS/C."
  25.     @echo " "
  26.     @echo "  clean      - Clean up directories (gmake)."
  27.     @echo " "
  28.     @echo "  check      - Check MD5 checksums for files."
  29.     @echo " "
  30.     @echo "  install    - Quick hack to install GAP-Lib under /usr/local"
  31.  
  32.  
  33. generic: .PHONY
  34.     gmake -C gaplib -f Makefile lib
  35.  
  36. unixcc: .PHONY
  37.     unixcc.sh gaplib lib
  38.  
  39. amiga: .PHONY
  40.     @execute Amiga.sh gaplib lib
  41.  
  42. m68k: .PHONY
  43.     gmake -C gaplib -f Makefile.m68k lib
  44.  
  45. sparc: .PHONY
  46.     gmake -C gaplib -f Makefile.sparc lib
  47.  
  48. x86: .PHONY
  49.     gmake -C gaplib -f Makefile.x86 lib
  50.     
  51. clean: .PHONY
  52.     gmake -C gaplib -f Makefile clean
  53.     gmake -C wizards -f Makefile clean
  54.     gmake -C diagnostic -f Makefile clean
  55.  
  56. distclean: clean
  57.     @-rm bin/*
  58.     @-rm lib/*    
  59.  
  60. wizards: .PHONY
  61.     gmake -C wizards -f Makefile all
  62.  
  63. tests: .PHONY
  64.     gmake -C diagnostic -f Makefile test
  65.  
  66. amigawiz: .PHONY
  67.     @execute Amiga.sh wizards all
  68.  
  69. examples: .PHONY
  70.     gmake -C examples -f Makefile all
  71.  
  72. amigaex: .PHONY
  73.     @execute Amiga.sh examples all
  74.  
  75. check: .PHONY
  76.     md5sum -c Checksums
  77.  
  78. install: lib/libgap.a include/GAP.h
  79.     install lib/libgap.a /usr/local/lib/
  80.     install include/GAP.h /usr/local/include/
  81.  
  82. #
  83. # Maintainance only.
  84. #
  85.  
  86. checksums: .PHONY
  87.     @echo "Rebuilding checksums..."
  88.     @delete Checksums\#\?
  89.     @list \#\? all files \>t:check lformat\=\"md5sum \%p\%n\ \>\>Checksums\"
  90.     @echo \>Checksums \"\# MD5 Checksums.\"
  91.     @execute t:check
  92.     pgp -sb Checksums peter
  93.     
  94. docs: .PHONY
  95.     @echo "Rebuilding documentation from autodoc."
  96.     @-delete doc/html/GAP\.html
  97.     @-delete doc/amigaguide/GAP\.guide
  98.     echo >build.tmp "GAP-Lib Function Reference*NGAP.html*N1"
  99.     autodoc2x doc/text/GAP.doc \<build.tmp \>Nil\:
  100.     @rename GAP.html doc/html/ \>Nil\:
  101.     echo >build.tmp "GAP-Lib Function Reference*NGAP.guide*N2"
  102.     autodoc2x doc/text/GAP.doc \<build.tmp \>Nil\:
  103.     @rename GAP.guide doc/amigaguide/ \>Nil\:
  104.     @-delete build.tmp \>Nil\:
  105.